﻿@model FindIt.Web.Models.DigestFormModel
<table>
    <tr>
        <td>@Html.LabelFor(m => m.Title)
        </td>
        <td>@Html.TextBoxFor(m => m.Title)
            @Html.ValidationMessageFor(m => m.Title)
        </td>
    </tr>
    <tr>
        <td>@Html.LabelFor(m => m.Author)
        </td>
        <td>@Html.TextBoxFor(m => m.Author)
            @Html.ValidationMessageFor(m => m.Author)
        </td>
    </tr>
    <tr>
        <td>@Html.LabelFor(m => m.DatePosted)
        </td>
        <td>@Html.EditorFor(m => m.DatePosted)
        </td>
    </tr>
    <tr>
        <td>@Html.LabelFor(m => m.Picture)
        </td>
        <td>@Html.TextBoxFor(m => m.Picture)
        </td>
    </tr>
    <tr>
        <td>@Html.LabelFor(m => m.Width)
        </td>
        <td>@Html.TextBoxFor(m => m.Width)
        </td>
    </tr>
    <tr>
        <td>@Html.LabelFor(m => m.Height)
        </td>
        <td>@Html.TextBoxFor(m => m.Height)
        </td>
    </tr>
    <tr>
        <td>@Html.LabelFor(m => m.PictureFormat)
        </td>
        <td>@Html.TextBoxFor(m => m.PictureFormat)
        </td>
    </tr>
    <tr>
        <td>@Html.LabelFor(m => m.Brief)
        </td>
        <td>@Html.TextBoxFor(m => m.Brief)
        </td>
    </tr>
    <tr>
        <td>@Html.LabelFor(m => m.FullText)
        </td>
        <td>@Html.TextBoxFor(m => m.FullText)
        </td>
    </tr>
    <tr>
        <td>@Html.LabelFor(m => m.Press)
        </td>
        <td>@Html.TextBoxFor(m => m.Press)
        </td>
    </tr>
    <tr>
        <td>@Html.LabelFor(m => m.PressUrl)
        </td>
        <td>@Html.TextBoxFor(m => m.PressUrl)
        </td>
    </tr>
    <tr>
        <td>@Html.LabelFor(m => m.Source)
        </td>
        <td>@Html.TextBoxFor(m => m.Source)
        </td>
    </tr>
    <tr>
        <td>@Html.LabelFor(m => m.CategoryId)
        </td>
        <td>@Html.DropDownListFor(m => m.CategoryId, Model.AvailableCategories, "please select")
        </td>
    </tr>
    <tr>
        <td>@Html.LabelFor(m => m.Keywords)
        </td>
        <td>@Html.TextBoxFor(m => m.Keywords)
        </td>
    </tr>
    <tr>
        <td>@Html.LabelFor(m => m.Contributor)
        </td>
        <td>@Html.TextBoxFor(m => m.Contributor)
        </td>
    </tr>
    <tr>
        <td>@Html.LabelFor(m => m.Deleted)
        </td>
        <td>@Html.CheckBoxFor(m => m.Deleted)
        </td>
    </tr>
    <tr>
        <td>@Html.LabelFor(m => m.DateSelected)
        </td>
        <td>@Html.TextBoxFor(m => m.DateSelected)
        </td>
    </tr>
    <tr>
        <td>@Html.LabelFor(m => m.LastUpdated)
        </td>
        <td>@Html.EditorFor(m => m.LastUpdated)
        </td>
    </tr>
</table>
@Html.ValidationSummary(true)
<script type="text/javascript">

    $(document).ready(function () {
        $("#DatePosted").datepicker({ dateFormat: 'yy/mm/dd',
            showButtonPanel: true,
            showOn: 'button',
            buttonImage: "/Content/images/calendar.gif",
            buttonImageOnly: true
        });
    });

</script>
